﻿using System;
using System.Collections.Generic;

namespace E.Model
{
    [Serializable]
    public class ShortNoticeModel
    {
        public int ID
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public int CategoryID
        {
            get;
            set;
        }

        public string CategoryName
        {
            get;
            set;
        }

        public DateTime AddDate
        {
            get;
            set;
        }

        public int PublisherID
        {
            get;
            set;
        }

        public string PublisherName
        {
            get;
            set;
        }
    }

    [Serializable]
    public class NoticeModel
    {
        public int ID
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public int CategoryID
        {
            get;
            set;
        }

        public string CategoryName
        {
            get;
            set;
        }

        public string Content
        {
            get;
            set;
        }

        public DateTime AddDate
        {
            get;
            set;
        }

        public int PublisherID
        {
            get;
            set;
        }

        public string PublisherName
        {
            get;
            set;
        }

        public string[] AreaStrList { get; set; }

        public IList<int> AreaIDList { get; set; }

        public bool IsSys { get; set; }
        public int CertificateID { get; set; }
    }

    [Serializable]
    public class SearchNoticeModel
    {
        public string Title { get; set; }
        public int CategoryID { get; set; }
        public string FromDate { get; set; }
        public string ToDate { get; set; }
        public int AreaID { get; set; }
        public int SysSelection { get; set; }
        public int PublisherID { get; set; }
        public int CertificateID { get; set; }
    }

    [Serializable]
    public class NoticeListModel
    {
        public int TotalCount { get; set; }
        public IList<ShortNoticeModel> List { get; set; }
    }

}
